﻿<Window x:Class="SinacorTester.AlternativeMenu"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="AlternativeMenu" Height="600" Width="800">
    <Grid>
        <Grid.Resources>

            <!-- ItemContainerStyle with the Trigger for Selected -->
            <Style TargetType="{x:Type ListBoxItem}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type ListBoxItem}">
                            <TextBlock Name="TheBGControl"><ContentPresenter /></TextBlock>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsSelected" Value="True">
                                    <Setter Property="Background" Value="DarkBlue" TargetName="TheBGControl" />
                                    <Setter Property="Foreground" Value="White" TargetName="TheBGControl" />
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>


        </Grid.Resources>

        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition Height="500"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="60"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
            <ColumnDefinition Width="40"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        
        <Label Grid.Row="0"  VerticalAlignment="Center" Height="21" Grid.Column="0">Diretório:</Label>
        <TextBox x:Name="txtCaminho" Height="21" Grid.Column="1" VerticalAlignment="Stretch" KeyDown="txtCaminho_KeyDown"></TextBox>
        <Button Width="30" Grid.Column="2" Height="21" Name="BtnCaminho" HorizontalAlignment="Center" Click="BtnCaminho_Click">...</Button>

        <Grid Grid.ColumnSpan="3" Grid.Row="1" Grid.Column="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="21"></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            
            <Label Grid.Row="0"  HorizontalAlignment="Left" Height="21" Grid.Column="0">Dlls</Label>
            <Label Grid.Row="0"  HorizontalAlignment="Left" Height="21" Grid.Column="1">Janelas</Label>

            <ListBox x:Name="LstDll" SelectionChanged="LstDll_SelectionChanged" SelectionMode="Single" VerticalAlignment="Stretch" Grid.Row="1" Grid.Column="0"></ListBox>
            <ListBox x:Name="LstJanelas" Grid.Row="1" VerticalAlignment="Stretch" Grid.Column="1"></ListBox>
        </Grid>
        
        <Button Grid.Row="2" VerticalAlignment="Center" Width="100" Height="21" Grid.Column="1" Name="button1" Click="button1_Click" IsDefault="True">Abrir Tela</Button>
    </Grid>
</Window>
